import request from '@/utils/request'
//1级分类
export const reqC1 = ()=>request.get('/admin/product/getCategory1')

export const reqC2 = (category1Id)=>request.get(`/admin/product/getCategory2/${category1Id}`)

export const reqC3 = (category2Id)=>request.get(`/admin/product/getCategory3/${category2Id}`)

//获取属性列表
export const reqAttrList = (c1,c2,c3)=>request.get(`/admin/product/attrInfoList/${c1}/${c2}/${c3}`)

//保存
export const reqSaveAttr = (data)=>request.post(`/admin/product/saveAttrInfo`,data)

export const reqDeleteAttr = (attrId)=>request.delete(`/admin/product/deleteAttr/${attrId}`)